#include <WinTen.h>
#include <Windows.h>
#include <ClipApi.h>

CLIPPER WndBox()
{
   HWND hDC     = _parni( 1 );
   WORD wTop    = _parni( 2 );
   WORD wLeft   = _parni( 3 );
   WORD wBottom = _parni( 4 );
   WORD wRight  = _parni( 5 );
   HPEN hPen, hOldPen;

   hPen = GetStockObject( WHITE_PEN );
   hOldPen = SelectObject( hDC, hPen );

   MoveTo( hDC, wLeft, wBottom );
   LineTo( hDC, wLeft, wTop );
   LineTo( hDC, wRight, wTop );

   hPen = CreatePen( PS_SOLID, 1, RGB( 128, 128, 128 ) );
   SelectObject( hDC, hPen );

   MoveTo( hDC, wLeft, wBottom );
   LineTo( hDC, wRight, wBottom );
   LineTo( hDC, wRight, wTop );

   DeleteObject( hPen );
   SelectObject( hDC, hOldPen );
}
